# coding:utf-8
list1 = [1, 2, 3, 4, 5]
list2 = ["a", 1, 2, "b"]
list3 = ["a", "b", "c", "d"]

print(list1, list2[0], list3[1:3])

list3.append("e")
print(list3)
del list3[1]
print(list3)
# del list2
print(len(list3))
print(list1 + list2)
print(list1 * 3)
print(3 in list1)
for x in list1:
    print(x)
print(max(list1))
print(list((1, 2, 3, 4, 5, "a")))  # 将元组转换为列表

list1.append(1)
print(list1)
print(list.count(list1, 1))
print(list.index(list1, 1))
list.insert(list1, 1, list2)
print(list1)
print(list1.pop(1))
list1.reverse()
print(list1)
list1.sort(reverse=True)  # True降序
print(list1)
